package cn.wolfcode.cloud.shop.domain;

import cn.wolfcode.cloud.shop.consts.Constants;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Administrator
 */
@Setter
@Getter
public class SeckillGood implements Serializable {

    private Long id;
    private Long goodId;
    private BigDecimal seckillPrice;
    private Integer stockCount;
    @JsonFormat(pattern = Constants.DEFAULT_DATE_TIME_PATTERN,timezone = Constants.DEFAULT_DATE_TIME_ZONE)
    private Date startDate;
    @JsonFormat(pattern = Constants.DEFAULT_DATE_TIME_PATTERN,timezone = Constants.DEFAULT_DATE_TIME_ZONE)
    private Date endDate;
}